package com.zycloud;

import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.PropertySource;

import java.io.IOException;

@EnableDubbo
@SpringBootApplication
@PropertySource(value = {"classpath:/provider-config.properties","classpath:/consumer-config.properties"})
public class ZycloudProviderProductApplication {

    public static void main(String[] args) throws IOException {
        SpringApplication.run(ZycloudProviderProductApplication.class, args);

        /*AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
        context.register(ZycloudProviderProductApplication.class);
        context.refresh();
        System.out.println("DemoService provider is starting...");
        System.in.read();*/
    }


}

